package com.oa.modules.approvalsec1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@TableName("licence")
public class LicenceEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Integer id;

    @ApiModelProperty(value = "级次")
    private Integer jc;

    @ApiModelProperty(value = "父id")
    private Integer pid;

    @ApiModelProperty(value = "父名称")
    private String pname;

    @ApiModelProperty(value = "祖id")
    private Integer ppid;

    @ApiModelProperty(value = "祖名称")
    private String ppname;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "材料要求")
    private Integer clyq;

    private String clyqtext;

    @ApiModelProperty(value = "法定依据")
    private Integer fdyj;

    private String fdyjtext;

    @ApiModelProperty(value = "办理时限")
    private String blsx;

    @ApiModelProperty(value = "是否前置")
    private Integer sfqz;

    private List<LicenceEntity> children;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getJc() {
        return jc;
    }

    public void setJc(Integer jc) {
        this.jc = jc;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getClyq() {
        return clyq;
    }

    public void setClyq(Integer clyq) {
        this.clyq = clyq;
    }

    public Integer getFdyj() {
        return fdyj;
    }

    public void setFdyj(Integer fdyj) {
        this.fdyj = fdyj;
    }

    public String getBlsx() {
        return blsx;
    }

    public void setBlsx(String blsx) {
        this.blsx = blsx;
    }

    public Integer getSfqz() {
        return sfqz;
    }

    public void setSfqz(Integer sfqz) {
        this.sfqz = sfqz;
    }

    public String getClyqtext() {
        return clyqtext;
    }

    public void setClyqtext(String clyqtext) {
        this.clyqtext = clyqtext;
    }

    public String getFdyjtext() {
        return fdyjtext;
    }

    public void setFdyjtext(String fdyjtext) {
        this.fdyjtext = fdyjtext;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Integer getPpid() {
        return ppid;
    }

    public void setPpid(Integer ppid) {
        this.ppid = ppid;
    }

    public String getPpname() {
        return ppname;
    }

    public void setPpname(String ppname) {
        this.ppname = ppname;
    }

    @Override
    public String toString() {
        return "LicenceEntity{" +
                "id=" + id +
                ", jc=" + jc +
                ", pid=" + pid +
                ", name='" + name + '\'' +
                ", clyq=" + clyq +
                ", clyqtext='" + clyqtext + '\'' +
                ", fdyj=" + fdyj +
                ", fdyjtext='" + fdyjtext + '\'' +
                ", blsx='" + blsx + '\'' +
                ", sfqz=" + sfqz +
                ", children=" + children +
                '}';
    }
}
